//
//  AboutUsView.swift
//  Kosspot
//
//  Created by 李鑫 on 2025/7/1.
//

import SwiftUI

struct AboutUrsView: View {
    @Environment(\.presentationMode) var presentationMode
    @EnvironmentObject var appState: AppState
    var body: some View {
        ZStack {
            Color(hex: "#0A0A0A")
            ScrollView {
              GradientBackgroundView(height: 194)
                VStack {
                    Text("深圳智变里程科技有限公司")
                        .font(.system(size: 20))
                        .foregroundStyle(.white)
                    Spacer().frame(height: 18)
                    Text("V1.0版本")
                        .font(.system(size: 14))
                        .foregroundStyle(Color(hex: "#CACACA"))
                    
                }
                Spacer().frame(height: 40)
                VStack {
                    HStack {
                        Text("公司名称")
                            .font(.system(size: 16))
                            .foregroundStyle(Color(hex: "#CACACA"))
                        Spacer()
                        Text("Spln.com.cn")
                            .font(.system(size: 16))
                            .foregroundStyle(Color(hex: "#FFFFFF"))
                    }
                    .padding(20)
                    HStack {
                        Text("联系我们")
                            .font(.system(size: 16))
                            .foregroundColor(Color(hex: "#CACACA"))
                        Spacer()
                        
                        Text("Spln")
                            .font(.system(size: 16))
                            .foregroundColor(.white)
                        +
                        Text("@qq.com")
                            .font(.system(size: 16))
                            .foregroundColor(.white)

                    }
                    .padding(20)
                    
                    
                }
                .background(Color(hex: "#1E1E1E"))
                .cornerRadius(16)
                .padding(.horizontal, 12)
                
             Spacer()
            }
        }
        .ignoresSafeArea()
        .customNavigationBar(title: "关于我们", backButtonAction: {
            appState.navigateBack()
        }, backgroundColor: UIColor(.clear))
    }
}

#Preview {
    AboutUrsView()
}
